package com.huopaolan.yohuoshop.Mvp.Contract;

import com.huopaolan.lib_core.Mvp.Model.IModel;
import com.huopaolan.lib_core.Mvp.View.IView;
import com.huopaolan.yohuoshop.Bean.BaseEntity;
import com.huopaolan.yohuoshop.Bean.HomeBannerEntity;
import com.huopaolan.yohuoshop.Bean.HomeGoodsEntity;
import com.huopaolan.yohuoshop.Bean.HomeRecommendEntity;

import java.util.Map;

import io.reactivex.Observable;

/**
 * 首页fragment订阅接口
 */
public interface HomeFragmentContract {

    //首页fragmentIview接口
    interface HomeFragmentIView extends IView {
        void bannerSuccess(HomeBannerEntity entity);

        void recommendSuccess(HomeRecommendEntity entity);

        void goodsSuccess(HomeGoodsEntity entity);
    }

    //首页fragmentIModel->
    interface HomeFragmentIModel extends IModel {
        Observable<BaseEntity> request(Map<String, String> map);

        Observable<HomeGoodsEntity> requestGoods(String request);
    }
}
